package com.market.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 地区表
 * </p>
 *
 * @author xd
 * @since 2024-03-26
 */
public class City implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 地区名称
     */
    private String cityName;

    /**
     * 省市ID
     */
    private Integer provinceId;

    /**
     * 暂时想法：以1为准，细分每个省市的不同地区
     */
    private BigDecimal level;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public BigDecimal getLevel() {
        return level;
    }

    public void setLevel(BigDecimal level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "City{" +
                "id=" + id +
                ", cityName=" + cityName +
                ", provinceId=" + provinceId +
                ", level=" + level +
                "}";
    }
}
